/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package controller;

import da.AccountAcction;
import entities.Account;
import java.math.BigDecimal;
import javax.ejb.Stateless;

/**
 *
 * @author QUY_THI
 */
@Stateless
public class AccountDeposit implements AccountDepositLocal {

    public boolean accountDeposit(Account account, BigDecimal amount) {
        boolean check = false;
        AccountAcction ac = new AccountAcction();
        boolean accountDeposit = ac.accountDeposit(account, amount);
        if (accountDeposit) {
            check = true;
        }
        return check;
    }
    // Add business logic below. (Right-click in editor and choose
    // "Insert Code > Add Business Method")
}
